package com.huyanqi.front.rest;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * 
 * <p>Title: PageRespObj.java</p>
 * 
 * <p>Description: 返回分页信息</p>
 * 
 * <p>Datetime: 2011-12-25 下午11:51:46</p>
 *
 * @company 成都映潮科技有限公司
 * 
 * @author <a href="mailto:liwei@sunsharp.cn">p.k.ripper</a>
 *
 */
@XmlRootElement
@XmlAccessorType( XmlAccessType.FIELD )
@XmlType( propOrder =
{
"totalResults" , "currentPage" , "pageSize" , "firstResult" , "nextPage" , "previousPage" , "totalPage"
} )
public class PageRespObj implements Serializable
{

	private static final long serialVersionUID = -8528436824251462668L;

	private int currentPage; // 当前页

    private int firstResult; // 当前页的起始记录

    private long totalResults; // 总共记录数

    private int pageSize; // 每页的数量

    private long totalPage; // 总共多少页

    private int nextPage; // 下一页

    private int previousPage; // 上一页

    public PageRespObj(){
    }

    public int getCurrentPage(){
    	return currentPage;
    }

    public void setCurrentPage( int currentPage ){
    	this.currentPage = currentPage;
    }

    public int getFirstResult(){
    	return firstResult;
    }

    public void setFirstResult( int firstResult ){
    	this.firstResult = firstResult;
    }

    public long getTotalResults(){
    	return totalResults;
    }

    public void setTotalResults(long totalResults ){
    	this.totalResults = totalResults;
    }

    public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public long getTotalPage(){
    	return totalPage;
    }

    public void setTotalPage( long totalPage ){
    	this.totalPage = totalPage;
    }

    public int getNextPage(){
    	return nextPage;
    }

    public void setNextPage( int nextPage ){
    	this.nextPage = nextPage;
    }

    public int getPreviousPage(){
    	return previousPage;
    }

    public void setPreviousPage( int previousPage ){
    	this.previousPage = previousPage;
    }

}
